package com.liuyao;


import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.debug.*;

public class main extends Object{
public static main mostCurrent = new main();

public static BA ba;
static {
		ba = new  anywheresoftware.b4a.ShellBA("com.liuyao", "com.liuyao.main", null);
		ba.loadHtSubs(main.class);
        if (ba.getClass().getName().endsWith("ShellBA")) {
			anywheresoftware.b4a.ShellBA.delegateBA = new anywheresoftware.b4a.StandardBA("com.liuyao", null, null);
			ba.raiseEvent2(null, true, "SHELL", false);
			ba.raiseEvent2(null, true, "CREATE", true, "com.liuyao.main", ba);
		}
	}
    public static Class<?> getObject() {
		return main.class;
	}

 
    public static void main(String[] args) throws Exception{
        try {
            anywheresoftware.b4a.keywords.Common.LogDebug("Program started.");
            initializeProcessGlobals();
            ba.raiseEvent(null, "appstart", (Object)args);
        } catch (Throwable t) {
			BA.printException(t, true);
		
        } finally {
            anywheresoftware.b4a.keywords.Common.LogDebug("Program terminated (StartMessageLoop was not called).");
        }
    }


private static boolean processGlobalsRun;
public static void initializeProcessGlobals() {
    
    if (main.processGlobalsRun == false) {
	    main.processGlobalsRun = true;
		try {
		        		
        } catch (Exception e) {
			throw new RuntimeException(e);
		}
    }
}public static anywheresoftware.b4a.keywords.Common __c = null;
public static com.liuyao.liuyao _ly = null;
public static com.liuyao.calendar _cal = null;
public static String  _appstart(String[] _args) throws Exception{
RDebugUtils.currentModule="main";
RDebugUtils.currentLine=12;
 //BA.debugLineNum = 12;BA.debugLine="Sub AppStart (Args() As String)";
RDebugUtils.currentLine=13;
 //BA.debugLineNum = 13;BA.debugLine="cal.Initialize";
_cal._initialize(null,ba);
RDebugUtils.currentLine=14;
 //BA.debugLineNum = 14;BA.debugLine="ly.Initialize";
_ly._initialize(null,ba);
RDebugUtils.currentLine=15;
 //BA.debugLineNum = 15;BA.debugLine="test";
_test();
RDebugUtils.currentLine=17;
 //BA.debugLineNum = 17;BA.debugLine="End Sub";
return "";
}
public static String  _test() throws Exception{
RDebugUtils.currentModule="main";
int _n = 0;
RDebugUtils.currentLine=18;
 //BA.debugLineNum = 18;BA.debugLine="Sub test";
RDebugUtils.currentLine=19;
 //BA.debugLineNum = 19;BA.debugLine="Dim n As Int=1987";
_n = (int) (1987);
RDebugUtils.currentLine=20;
 //BA.debugLineNum = 20;BA.debugLine="Log(n&\"=\"&cal.lYearDays(1987)&CRLF&\"the right val";
anywheresoftware.b4a.keywords.Common.Log(BA.NumberToString(_n)+"="+BA.NumberToString(_cal._lyeardays(null,(int) (1987)))+anywheresoftware.b4a.keywords.Common.CRLF+"the right val is:387");
RDebugUtils.currentLine=21;
 //BA.debugLineNum = 21;BA.debugLine="End Sub";
return "";
}
}